commonlibsse_ng\re\t/
TESDescription.rs

1use crate::re::BGSLocalizedStringDL::BGSLocalizedStringDL;
2use crate::re::BSString::BSString;
3use crate::re::BaseFormComponent::{BaseFormComponent, BaseFormComponentVtbl};
4use crate::re::TESForm::TESForm;
5use crate::re::offsets_rtti::RTTI_TESDescription;
6use crate::re::offsets_vtable::VTABLE_TESDescription;
7use crate::rel::id::VariantID;
8
9#[repr(C)]
10#[derive(Debug, PartialEq, Eq)]
11pub struct TESDescription {
12    pub __base: BaseFormComponent,
13    pub fileOffset: u32,                       // 0x08
14    pub descriptionText: BGSLocalizedStringDL, // 0x0C
15}
16const _: () = assert!(core::mem::size_of::<TESDescription>() == 0x10);
17
18impl TESDescription {
19    /// Address & offset of the runtime type information (RTTI) identifier.
20    pub const RTTI: VariantID = RTTI_TESDescription;
21
22    /// Address & offset of the virtual function table.
23    ///
24    /// The number of tables is the same as the number of classes with inherited virtual functions.
25    pub const VTABLE: [VariantID; 1] = VTABLE_TESDescription;
26}
27
28pub struct TESDescriptionVtbl {
29    pub __base: BaseFormComponentVtbl,
30    /// - default file_type = `"CSED"`: 1129530692(0x43534544)
31    pub GetDescription:
32        fn(this: &mut TESDescription, out: &mut BSString, parent: *mut TESForm, file_type: u32),
33}